import {action, observable} from 'mobx';
import Base from './base';

export default class DemoStore extends Base {

	@observable name: string = '';

	@action setName(name: string) {
		this.name = name;
	}
}

export async function fetchInit() { //通过访问请求得到初始状态
	// You can do anything to fetch initial store state
	return {name: '123'};
}
